package com.woniuxy.usersecurity.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 角色权限关系表
 * </p>
 *
 * @author zhangxianhui
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ROLE_PERMISSION")
@ApiModel(value="RolePermission对象", description="角色权限关系表")
@KeySequence("SEQ_ROLE_PERMISSION")
public class RolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色权限关系编号")
    @TableId(value = "ROLE_PERMISSION_ID",type = IdType.INPUT)
    private Integer rolePermissionId;

    @ApiModelProperty(value = "权限编号")
    @TableField("PERMISSION_ID")
    private Integer permissionId;

    @ApiModelProperty(value = "角色编号")
    @TableField("ROLE_ID")
    private Integer roleId;


}
